#!/bin/sh
echo $env.LOCAL_ERROR
echo $callback_url

cd ADD-SINGLE-STACK-PROGRAMMING-QUIZ-SUBMISSION
./echoMessage.sh 'The answer is wrong. \n'

#if [ ! -f "${JOB_NAME}_${BUILD_NUMBER}/script_temp" ];then
# touch ${JOB_NAME}_${BUILD_NUMBER}/$messagePath/message-${BUILD_NUMBER}
#fi

curl -X POST \
    -F "status=0" \
    -F "msg=$LOCAL_ERROR" \
    -F job_msg=@$messagePath/message-${BUILD_NUMBER} \
    -F "buildNumber=${BUILD_NUMBER}" \
    $callback_url
